﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wasion.HHU.Services
{
    public class CommProperty
    {
        public CommProperty() { }

        //public static int SendMessage(int hWnd, int Msg, string wParam, string lParam);

        public enum CommMode
        {
            RS232 = 0,
            TCPC = 1,
            TCPS = 2,
            TCPCAN = 3,
            UDPC = 4,
            UDPS = 5,
            OPTICAL = 6,
            BLELOW = 7,
            WSBLE = 8,
            OPTICAL1107 = 9
        }
        public enum SRMode
        {
            MBin = 0,
            MASCII = 1
        }

        //public delegate void MSGEventHandler(ref Message m);
        public delegate string EventGetReceive(ref string aframe, ref string errorinfo);
        public delegate void EventAfterReceive(string commname, ref string arecstr);
    }
}
